import ComponentBase from "../engine/ComponentBase";

const { ccclass, property } = cc._decorator;

@ccclass
export class LoadingIcon extends ComponentBase {

    private icon: cc.Node;

    onEnable() {
        this.icon = this.findChild(this.node, "icon")
    }

    update() {
        if(this.icon){
            this.icon.angle -= 8;
        }
    }   
}

